package com.lh.tams.domain;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.lh.tams.util.diy.CustomDateSerializer;

/**
 * TamsNotice entity. @author MyEclipse Persistence Tools
 */

public class TamsNotice implements java.io.Serializable {

	// Fields

	private long idBgt;
	private TamsPerson tamsPerson;
	private String title;
	private String noticeContent;
	private int isUp;
	private Date createDate;
	private int status;
	private String remark;

	// Constructors

	/** default constructor */
	public TamsNotice() {
	}

	/** minimal constructor */
	public TamsNotice(long idBgt) {
		this.idBgt = idBgt;
	}

	/** full constructor */
	public TamsNotice(long idBgt, TamsPerson tamsPerson, String title,
			String noticeContent, int isUp, Date createDate, int status,
			String remark) {
		this.idBgt = idBgt;
		this.tamsPerson = tamsPerson;
		this.title = title;
		this.noticeContent = noticeContent;
		this.isUp = isUp;
		this.createDate = createDate;
		this.status = status;
		this.remark = remark;
	}

	// Property accessors

	public long getIdBgt() {
		return this.idBgt;
	}

	public void setIdBgt(long idBgt) {
		this.idBgt = idBgt;
	}

	public TamsPerson getTamsPerson() {
		return this.tamsPerson;
	}

	public void setTamsPerson(TamsPerson tamsPerson) {
		this.tamsPerson = tamsPerson;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getNoticeContent() {
		return this.noticeContent;
	}

	public void setNoticeContent(String noticeContent) {
		this.noticeContent = noticeContent;
	}

	public int getIsUp() {
		return this.isUp;
	}

	public void setIsUp(int isUp) {
		this.isUp = isUp;
	}
	
	@JsonSerialize(using=CustomDateSerializer.class)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}